<template>
  <img alt="404" src="@/assets/svg/404.svg"/>
  <div class="right_box">
    <h1>404</h1>
    <div class="span">抱歉，你访问的页面不存在或仍在开发中</div>
    <div class="btn">
      <el-button status="success" @click="goBack">返回上一级</el-button>
    </div>
  </div>
</template>

<script lang='ts' setup>
import { useRouter } from 'vue-router'

const router = useRouter()
const goBack = () => {
  router.back()
}

</script>

<style lang="scss" scoped>
.right_box {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 20px 0;

  h1 {
    font-size: 60px;
    letter-spacing: 10px;
  }

  .span {
    font-size: 15px;
    letter-spacing: 2px;
  }

  .btn {
    width: 100%;
    display: flex;
    justify-content: space-around;
  }

}
</style>
